<?php
class IndexController extends Yaf_Controller_Abstract {

    private $_layout;

    public function init(){
         //使用layout页面布局
         $this->_dispatcher = Yaf_Registry::get("dispatcher");
         $this->_layout = new LayoutPlugin('laylout_reception.phtml');
         $this->_dispatcher->registerPlugin($this->_layout);
    }
    /*首页展示*/
    public function indexAction() {
        /*layout*/
		header("Location:admin_login/index/type/0");
    }
    /*信息插入*/
    public function insertmessageAction(){
    	$name = ($_POST['name'])?htmlspecialchars($_POST['name']):"";
    	$content = ($_POST['content'])?htmlspecialchars($_POST['content']):"";   	
    	exit;
    }
}
